package com.zhongwang.mms.module.jiaGongSemi.dao;

import com.zhongwang.mms.gen.entity.HOrderDetail;
import com.zhongwang.mms.gen.entity.TWarehouseInfo;
import com.zhongwang.mms.module.jiaGongSemi.model.JSemi;
import com.zhongwang.mms.module.jiaGongSemi.model.JSemiDetail;
import com.zhongwang.mms.module.jiaGongSemi.model.JSemiInventory;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OffsetDao {

    List<JSemiDetail> selectAllByQuery(JSemiDetail query);

    JSemiDetail selectAllByOdaId(Integer odaId);

    JSemi selectOneByPrimaryKey(@Param("odaOdrId") Integer odaOdrId);

    List<JSemiInventory> selectAllByRowNo(Integer odaId);

    JSemiInventory selectAllById(Integer odaOutItyId);

    int updateHInventoryNumById(JSemiInventory hInventory);

    int updateHInventoryNumById2(JSemiInventory hInventory);

    int updateHInventoryNumByRowNo(JSemiInventory hInventory);

    int updateHInventoryNumByRowNo2(JSemiInventory hInventory);

    int updateDetailToRedByOdaId(HOrderDetail hOrderDetail);

    int selectCountByOdrRepId(String odrRepId);
}
